package com.mk.Controller;

import com.mk.Service.testService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class testController {

    @DubboReference
    private testService testService;

    @GetMapping("/test")
    public void test1(){
        System.out.println(testService==null);
        System.out.println("开始");
        System.out.println(testService.sayHello());;
    }
}
